import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
    {
        path: '/',
        redirect: '/home',

    },
    {
        path: '/home',
        name: 'home',
        component: () => import("../components/HelloWorld.vue")
    },
    {
        path: '/about',
        name: 'about',
        component: () => import("../components/about.vue")
    },
]

const router = new VueRouter({
    router: routes,
})

export default router
